package com.yiban.demo.Station.Entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.geo.Distance;
import org.springframework.data.geo.Point;

@Data
@NoArgsConstructor
public class NearByStation {
    private Point point;
    private Distance distance;
    private String stationName;
    private Integer stationId;

    public NearByStation(Station station, Point point, Distance distance) {
        this.stationName = station.getStationName();
        this.stationId = station.getStationId();
        this.point = point;
        this.distance = distance;
    }
}
